import request from '@/utils/request'
//随访问卷表格数据
export function followYzyPlan(data) {
  return request({
    url: '/api-fol/followYzyPlan/listFollowYzyPlan',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//随访问卷新增计划
export function saveFollowYzyPlan(data) {
  return request({
    url: '/api-fol/followYzyPlan/saveFollowYzyPlan',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
// 下拉接口
export function rcode(data) {
  return request({
    url: '/api-fol/comCodeLists/rcode',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//随访问卷下拉接口
export function listQuestionnaire() {
  return request({
    url: '/api-fol/followYzyQuestionnaire/listQuestionnaire',
    method: 'post',
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//计划数据回显
export function getFollowYzyPlan(data) {
  return request({
    url: '/api-fol/followYzyPlan/getFollowYzyPlan',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//修改计划
export function updateFollowYzyPlan(data) {
  return request({
    url: '/api-fol/followYzyPlan/updateFollowYzyPlan',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//删除计划
export function deleteFollowYzyPlan(data) {
  return request({
    url: '/api-fol/followYzyPlan/deleteFollowYzyPlan',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//患者管理获取列表数据
export function getPatListByPlanId(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/getPatListByPlanId',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//无随访计划列表数据
export function patient(data) {
  return request({
    url: '/api-fol/patients/noplan/patient',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//无随访计划列表数据
export function planpat(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/delete/planpat',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//添加到随访计划
export function patients(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/handscreen/patients',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
